package cn.walls1717.wallsmall.product.dao;

import cn.walls1717.wallsmall.product.entity.SpuInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * spu信息
 * 
 * @author walls1717
 * @email walls1717@163.com
 * @date 2022-10-21 11:26:47
 */
@Mapper
public interface SpuInfoDao extends BaseMapper<SpuInfoEntity> {

    /**
     * 根据spuId修改商品状态为上架(1)状态
     *
     * @param spuId spuId
     * @param code 上架状态码(1)
     */
    void updateStatusBySpuId(@Param("spuId") Long spuId, @Param("code") Integer code);
}
